<?php 
include_once(dirname(__FILE__) . "/article-main-adapter.php");
// $conn = mysql_connect("127.0.0.1","root","");
// mysql_select_db("xingtan");
$id = intval($_GET['id']);
printf('%d<br/>', $id);
$content = $_POST['jz_editor'];

if ($id && $content) {
  $service_adapter = new ArticleMainAdapter();
  print 'update result = ' . $service_adapter->UpdateContent($id, $content);
} else {
  print 'parameter error';
}
// mysql_close($conn);
?>
<br/>
<a href="/content-edit.php?id=<?php echo $id ?>">继续编辑</a>
<a href="/a/<?php echo $id ?>.html">查看效果</a>
<a></a>
